package com.ruoyi.demo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.yulichang.base.MPJBaseServiceImpl;
import com.ruoyi.demo.domain.AcProjectConfig;
import com.ruoyi.demo.mapper.AcProjectConfigMapper;
import com.ruoyi.demo.service.IAcProjectConfigService;

/**
 * 工程配置Service业务层处理
 *
 * @author CMee
 * @date 2025-10-24
 */
@Service
public class AcProjectConfigServiceImpl extends MPJBaseServiceImpl<AcProjectConfigMapper, AcProjectConfig>
    implements IAcProjectConfigService {
    @Autowired
    private AcProjectConfigMapper acProjectConfigMapper;

    /**
     * 查询工程配置
     *
     * @param tableId 工程配置主键
     * @return 工程配置
     */
    @Override
    public AcProjectConfig selectAcProjectConfigByTableId(Long tableId) {
        return acProjectConfigMapper.selectAcProjectConfigByTableId(tableId);
    }

    /**
     * 查询工程配置列表
     *
     * @param acProjectConfig 工程配置
     * @return 工程配置
     */
    @Override
    public List<AcProjectConfig> selectAcProjectConfigList(AcProjectConfig acProjectConfig) {
        return acProjectConfigMapper.selectAcProjectConfigList(acProjectConfig);
    }

    /**
     * 新增工程配置
     *
     * @param acProjectConfig 工程配置
     * @return 结果
     */
    @Override
    public int insertAcProjectConfig(AcProjectConfig acProjectConfig) {
        return acProjectConfigMapper.insertAcProjectConfig(acProjectConfig);
    }

    /**
     * 修改工程配置
     *
     * @param acProjectConfig 工程配置
     * @return 结果
     */
    @Override
    public int updateAcProjectConfig(AcProjectConfig acProjectConfig) {
        return acProjectConfigMapper.updateAcProjectConfig(acProjectConfig);
    }

    /**
     * 批量删除工程配置
     *
     * @param tableIds 需要删除的工程配置主键
     * @return 结果
     */
    @Override
    public int deleteAcProjectConfigByTableIds(Long[] tableIds) {
        return acProjectConfigMapper.deleteAcProjectConfigByTableIds(tableIds);
    }

    /**
     * 删除工程配置信息
     *
     * @param tableId 工程配置主键
     * @return 结果
     */
    @Override
    public int deleteAcProjectConfigByTableId(Long tableId) {
        return acProjectConfigMapper.deleteAcProjectConfigByTableId(tableId);
    }
}